﻿<%@ Page Title="Car Enquiry" Language="C#" 
MasterPageFile="~/Views/Shared/Site.Master" 
Inherits="System.Web.Mvc.ViewPage<CarBooker.Models.CarEnquiryModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Cars
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<!--    <h2>Cars</h2>
   <form method="post" runat="server">
    
    <label id="startlabel" title="Start" />
    <input id="test" type="text" value="" /> 
    <input id="submit" type="submit" onclick="Cars" runat="server" />

    </form>
-->
    <% using (Html.BeginForm("GetCars","Home",FormMethod.Post )) { %>
        <div>
            <fieldset>
                <legend>Select Parameters</legend>
                
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.StartDate) %>
                </div>
                <div class="editor-field">
                    <%= Html.TextBoxFor(m => m.StartDate) %>
                </div>
                
                <div class="editor-label">
                    <%= Html.LabelFor(m => m.EndDate) %>
                </div>
                <div class="editor-field">
                    <%= Html.TextBoxFor(m => m.EndDate) %>
                </div>
                                
                <p>
                    <input type="submit" value="Get Cars" />
                </p>
            </fieldset>
        </div>
    <% } %>


</asp:Content>
